package com.my12306.common.constant;

/**
 * @Author:苏牧夕
 * @Date:2020/5/14 13:40
 * @Version 1.0
 */
public class CommonConstants {
    /**
     * 最大有效时间：三个小时
     */
    public static int maxAge = 60 * 60 * 3;
    /**
     * cookie 的url  “/” 表示所有
     */
    public static String cookiePath = "/";
    /**
     * 验证码的Cookie名字
     */
    public static String verificateCode = "_vfcde";
    /**
     * 注册时缓存短信发送次数的前缀key
     */
    public static String smscode_key = "rgtcod_";
    /**
     * 记录短信缓存key的cookie；
     */
    public static String sms_cokkieName = "rgtcod-u";
    /**
     * token
     */
    public static String Authorization = "Authorization";
    /**
     * 管理员名称
     */
    public static String ADMIN = "admin";


    public static String[] JOB = new String[]{"redisJob", "smsJob", "trainSchedulerJob"};


    public enum OpenCheck {
        no_check(0),
        checked(1);
        Integer value;

        OpenCheck(int i) {
            value = i;
        }

        public Integer getValue() {
            return value;
        }

        public void setValue(Integer value) {
            this.value = value;
        }
    }

    public enum LogicDelete {
        no_delet(1),
        delete(0);
        Integer value;

        LogicDelete(int i) {
            value = i;
        }

        public Integer getValue() {
            return value;
        }

        public void setValue(Integer value) {
            this.value = value;
        }
    }
}
